Skip to main content

All Questions

-1votes
1answer
522views

Should the aggregate root have a property that it cannot validate [duplicate]

I ran into the situation where I have to decide whether a property belongs to my aggregate or not. My domain logic is the following. A User has a group in his organization ex: IT, SALES, MARKETING. ...
Mohamed Bouallegue's user avatar
1vote
1answer
937views

PHP Application - code structure in practice(3-Tier)?

I should preface this by saying that although I've been programming for a while, this is the first time I'm doing it for work and am relatively new to PHP. I have been asked to create a PHP app that, ...
GothicAnatomist's user avatar
4votes
2answers
205views

Return type declaration and checks

I've been mainly programming PHP, and I recently started with C++. In PHP the return of a function can be of any type, so you can do checks like this: public function doSomething() { if (! this-&...
Melvin Koopmans's user avatar
6votes
4answers
2kviews

Can a loosely typed language be considered true object oriented?

Can a loosely typed programming language like PHP be really considered object oriented? I mean, the methods don't have returning types and method parameters has no declared type either. Doesn't ...
Tulains Córdova's user avatar
6votes
4answers
2kviews

PHP - Internal APIs/Libraries - What makes sense?

I've been having a discussion lately with some colleagues about the best way to approach a new project, and thought it'd be interesting to get some external thoughts thrown into the mix. Basically, ...
Mark Locker's user avatar
5votes
1answer
986views

Separation of concerns in an RMR framework

I'm working on a new framework for PHP that utilises an architectural pattern called RMR, instead of the more common (pseudo)-MVC that most PHP frameworks currently implement. So far it feels like a ...
GordonM's user avatar
  • 6,515

close